<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎...</title>
<link rel="stylesheet" type="text/css" href="../images/admin/top.css" />
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript">
var curEle='t1';
function sm(i){	
	if (!empty(curEle)) {
		document.getElementById(curEle).className='';
	}
	document.getElementById(i).className='ah';
	curEle=i;
}
</script>
<base target="main" />
</head>
<body>
<div class="H">
     <div class="logo">
	    <h1>&nbsp;</h1>
	 </div>
	 
	<div class="nav">		
            <a id="t1" href="?mod=main" onclick="javascript:sm('t1');" onFocus="this.blur()" class="ah">后台首页</a> 
			<a id="t2" href="?mod=main" onclick="javascript:sm('t2');" onFocus="this.blur()">其它设置</a>
	</div>
	<div class="C"></div>
</div>

<div class="navi">
     <span class="exit"><a target="_top" href="?mod=login&action=logout">安全退出</a></span>
	 
&nbsp;服务器时间:<font id="time"></font>
</div>
<script type="text/javascript">
var x = new Array("星期日", "星期一", "星期二","星期三","星期四", "星期五","星期六");
var d = new Date(<?=sprintf("%s,%d,%s",date('Y'),date('m')-1,date('d,H,i,s'))?>);
var ss = d.getSeconds();
function formatNum(ss) {
	return (ss>=10) ? ss : '0' + ss;
}
function getTime(){
  d.setSeconds(ss+1);
  ss++;
  if(ss>59) {
     ss=1;
  }
  document.getElementById('time').innerHTML=d.getFullYear() + '年' +(d.getMonth()+1)  + '月' + d.getDate() + '日&nbsp;' + x[d.getDay()] + '&nbsp;';
  document.getElementById('time').innerHTML += d.getHours() + ':' + formatNum(d.getMinutes()) + ':' + formatNum(d.getSeconds()); 

}
setInterval('getTime()',1000);
</script>
</body>
</html>
